<?php

  if(end($url) == 'save') {
    $_POST['anhang'] = $file->uploadFile($_FILES['filesToUpload']);    
    $tid = $ticket->saveNewTicket($_POST);
            
    header("Location: " . base::get('getPath') . "/ticket/detail/".$tid);
  }

?>
